package com.stockz.ui.swing.charting.listener;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import com.stockz.core.util.Global;
import com.stockz.ui.swing.charting.util.UIChartingConstant;

public class SelectionListener extends MouseAdapter {
	
	@Override
	public void mouseClicked(MouseEvent e) {
		Global.put(UIChartingConstant.SelectedStockChartPanel, e.getSource());
	}
	@Override
	public void mouseEntered(MouseEvent e) {
		mouseClicked(e);
	}
	@Override
	public void mousePressed(MouseEvent e) {
		mouseClicked(e);
	}
}
